package com.zhentao.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhentao.entity.product.ProductSpec;
import com.zhentao.service.ProductSpecService;
import com.zhentao.mapper.ProductSpecMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
* @author Lenovo
* @description 针对表【product_spec(商品规格)】的数据库操作Service实现
* @createDate 2024-09-02 19:32:10
*/
@Service
public class ProductSpecServiceImpl extends ServiceImpl<ProductSpecMapper, ProductSpec>
    implements ProductSpecService{
    @Resource
    private ProductSpecMapper productSpecMapper;
    /**
     * 商品规格
     * @param page
     * @param limit
     * @return
     */
    @Override
    public Page<ProductSpec> findByPage(Integer page, Integer limit) {
        Page<ProductSpec> page1 = new Page<>(page,limit);
        Page<ProductSpec> page2 = productSpecMapper.findByPage(page1);
        return page2;
    }
}




